package com.yunji.framework_template.orm.persistence.mapper;

import java.util.List;

import com.yunji.framework_template.common.web.Page;
import com.yunji.framework_template.orm.persistence.model.SitesType;

public interface SitesTypeMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(SitesType record);

    int insertSelective(SitesType record);

    SitesType selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SitesType record);

    int updateByPrimaryKey(SitesType record);

    List<SitesType> selectByCondition(SitesType record);

    List<SitesType> selectAll();

    /**
     * 获取所有的一级分类，并按seq顺序排序
     * 
     * @return
     */
    List<SitesType> selectPType();

    List<SitesType> selectByPage(Page page);

    Integer count(SitesType record);

    int deleteByCondition(SitesType record);
}
